This page last changed on Nov 16, 2005 by aperepel.

This example configuration shows how to configure a Mule component read a File from a location and dispatch it over tcp without performing any interim processing using the Bridge Component.

<mule-descriptor name="fileReceiverUMO"
    inboundEndpoint="file:///temp/myfiles/in?binary=true&amp;amp;
                      moveToDirectory=/temp/myfiles/out"
    outboundEndpoint="tcp://localhost:12345"
    implementation="org.mule.components.simple.BridgeComponent">
</mule-descriptor>

The inboundendpoint creates a file connector that listens on directory file:///temp/myfiles/in*, reads files in as *binary and moves the file to *file:///temp/myfiles/out* once it has been read.

The Bridge Component tells Mule to automatically forward the file contents to tcp://localhost:12345.

Document generated by Confluence on Nov 27, 2006 10:27